//
//  ZZLightViewSettingCVCellModel.m
//  ZZBlue
//
//  Created by stonesMonkey on 2017/9/22.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZZLightViewSettingCVCellModel.h"

@implementation ZZLightViewSettingCVCellModel

-(id)copy {
    
    ZZLightViewSettingCVCellModel *model = [ZZLightViewSettingCVCellModel new];
    model.color = [UIColor colorWithCGColor:self.color.CGColor];
    model.isSelect = NO;
    model.model = self.model;
    
    return model;
}

+ (NSArray< ZZLightViewSettingCVCellModel *> *)modesForColors:(NSArray<ZZColorRGBA *>*)colors {
    
    NSMutableArray *mtbArr = [NSMutableArray array];
    for (ZZColorRGBA *rgba in colors) {
        
        ZZLightViewSettingCVCellModel *model = [ZZLightViewSettingCVCellModel new];
        model.color = [rgba color];
        [mtbArr addObject:model];
    }
    return mtbArr;
}

@end
